{{include file="header_inc.html"}}
<body>
	<div class="subnav">
		<div class="content-menu ib-a blue line-x">
			<a href='javascript:;' class="on"><em>管理员管理</em></a><span>|</span><a
				href='/setting/adminmanage/add/'><em>添加管理员</em></a>
		</div>

	</div>
	<div class="pad_10">
		<div class="table-list">
			<form name="myform" action="?m=admin&c=role&a=listorder"
				method="post">
				<table width="100%" cellspacing="0">
					<thead>
						<tr>
							<th width="10%">序号</th>
							<th width="10%" align="left">用户名</th>
							<th width="10%" align="left">所属角色</th>
							<th width="10%" align="left">最后登录IP</th>
							<th width="20%" align="left">最后登录时间</th>
							<th width="15%" align="left">E-mail</th>
							<th width="10%">真实姓名</th>
							<th width="15%">管理操作</th>

						</tr>
					</thead>
					<tbody>
						{{foreach item=content from=$Admin_list}}
						<tr>
							<td width="10%" align="center">{{$content.uid}}</td>
							<td width="10%">{{$content.username}}</td>
							<td width="10%">{{$content.rolename}}</td>
							<td width="10%">{{$content.lastloginip}}</td>
							<td width="20%">{{$content.lastlogintime}}</td>
							<td width="15%">{{$content.email}}</td>
							<td width="10%" align="center">{{$content.realname}}</td>
							<td width="15%" align="center"><a
								href="javascript:edit({{$content.uid}}, '{{$content.username}}')">修改</a>
								| {{if $content.uid == 1}} <font color="#cccccc">删除</font>
								{{else}} <a
								href="javascript:confirmurl('/setting/adminmanage/delete/uid/{{$content.uid}}/', '是否删除该管理员?')">删除</a>
								{{/if}}</td>
						</tr>
						{{/foreach}}
					</tbody>
				</table>
				<div id="pages"></div>
			</form>
		</div>
	</div>
</body>
<script type="text/javascript">
<!--
	function edit(uid, name) {
		window.top.art.dialog({
			title : '修改--' + name,
			id : 'edit',
			iframe : '/setting/adminmanage/edit/uid/' + uid + '/',
			width : '500px',
			height : '400px'
		}, function() {
			var d = window.top.art.dialog({
				id : 'edit'
			}).data.iframe;
			var form = d.document.getElementById('dosubmit');
			form.click();
			return false;
		}, function() {
			window.top.art.dialog({
				id : 'edit'
			}).close()
		});
	}
//-->
</script>
{{include file="footer.html"}}
